90304: xfi:segment-remainder
Documentation
Owners
Name | Affiliation | Start | End | |
---|---|---|---|---|
Herm Fischer |
|
fischer@markv.com | 06-02-2008 at 15:10:00 |
References
Test Case Variations
V-01
Segment remainder for everest which has two elements mixed with dimensions
Documentation
Inputs
- schema: fact-segment-remainder.xsd
- linkbase: fact-segment-remainder-definition.xml
- instance: fact-segment-remainder-instance1.xml (DTS Discovery starting point) (ID=V01)
-
Function Call:
xfi:fact-segment-remainder( /xbrli:xbrl/t:Peak[./text() eq 'Mount Everest'] )
(against file V01)
Outputs
-
Result test:
$result instance of element(*)* and count( $result ) eq 2 and local-name($result[1]) eq 'NeedOxygen' and $result[1]/@id eq 'ev1' and local-name($result[2]) eq 'HasWifiAccess' and $result[2]/@id eq 'ev2'
V-02
Segment remainder for vinson which has complex type structures intermixed with dimensions
Documentation
Inputs
- schema: fact-segment-remainder.xsd
- linkbase: fact-segment-remainder-definition.xml
- instance: fact-segment-remainder-instance1.xml (DTS Discovery starting point) (ID=V02)
-
Function Call:
xfi:fact-segment-remainder( /xbrli:xbrl/t:Peak[./text() eq 'Vinson Massif'] )
(against file V02)
Outputs
-
Result test:
$result instance of element(*)* and count( $result ) eq 3 and local-name($result[1]) eq 'Element1' and $result[1]/@id eq 'e1' and $result[1] is //t:Element1[@id='e1'] and local-name($result[2]) eq 'Stuff' and $result[2]/@id eq 's1' and $result[2] is //t:Stuff[@id='s1'] and local-name($result[3]) eq 'Stuff' and $result[3]/@id eq 's4' and $result[3] is //t:Stuff[@id='s4'] and $result[3]/t:Element3/@id eq 's4e3'
V-03
Segment remainder for kilimanjaro is empty
Documentation
Inputs
- schema: fact-segment-remainder.xsd
- linkbase: fact-segment-remainder-definition.xml
- instance: fact-segment-remainder-instance1.xml (DTS Discovery starting point) (ID=V03)
-
Function Call:
xfi:fact-segment-remainder( /xbrli:xbrl/t:Peak[./text() eq 'Mount Kilimanjaro'] )
(against file V03)
Outputs
-
Result test:
empty( $result )
V-04
Segment remainder for segment-less quark is empty
Documentation
Inputs
- schema: fact-segment-remainder.xsd
- linkbase: fact-segment-remainder-definition.xml
- instance: fact-segment-remainder-instance1.xml (DTS Discovery starting point) (ID=V04)
-
Function Call:
xfi:fact-segment-remainder( /xbrli:xbrl/t:OtherPhenomenon[./text() eq 'Quark'] )
(against file V04)
Outputs
-
Result test:
empty( $result )
V-05
Segment remainder for ozone hole returns typed attribute and element nodes
Documentation
Inputs
- schema: fact-segment-remainder.xsd
- linkbase: fact-segment-remainder-definition.xml
- instance: fact-segment-remainder-instance1.xml (DTS Discovery starting point) (ID=V05)
-
Function Call:
xfi:fact-segment-remainder( /xbrli:xbrl/t:AtmosphericPhenomenon )
(against file V05)
Outputs
-
Result test:
$result[1]/*[1]/*[1] instance of element(t:Element4) and $result[1]/*[1]/*[1]/@intAttr instance of attribute(*,xs:integer) and $result[1]/*[1]/*[1]/@qnAttr instance of attribute(*,xs:QName) and $result[1]/*[1]/*[1]/*[1] instance of element(t:intElt,xs:integer) and $result[1]/*[1]/*[1]/*[2] instance of element(t:qnElt,xs:QName) and data( $result[1]/*[1]/*[1]/@intAttr ) instance of xs:integer and data( $result[1]/*[1]/*[1]/@qnAttr ) instance of xs:QName and data( $result[1]/*[1]/*[1]/*[1] ) instance of xs:integer and data( $result[1]/*[1]/*[1]/*[2] ) instance of xs:QName and ($result[1]/*[1]/*[1]/@intAttr + 1 eq 12346) and ($result[1]/*[1]/*[1]/@qnAttr eq QName('http://xbrl.org/formula/conformance/example','Element1') ) and ($result[1]/*[1]/*[1]/*[1] + 1 eq 54322 ) and ($result[1]/*[1]/*[1]/*[2] eq QName('http://xbrl.org/formula/conformance/example','Element2') )
Revisions
Name | On | Details |
---|---|---|
Herm Fischer | 06-02-2008 at 15:10:00 |
|
Herm Fischer | 05-12-2008 at 00:00:00 |
|